<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="java.io.*"%>
<%@ page import="com.usersmodule.bean.*"%>
<html>
<head>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript" src="js/tree.js"></script>
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="top" class="td03"><br>
      <table width="90%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="25" align="left" class="F01"><p><img src="images/index_35.gif" width="12" height="16"  ><strong>功能模块</strong></p>
          </td>
        </tr>
        <tr>
          <td height="2" background="images/index_39.gif"><img src="images/spacer.gif" width="1" height="1"></td>
        </tr>
      </table>
        <table width="90%" border="0" cellpadding="0" cellspacing="0" class="td01">
          <tr>
            <td width="12">&nbsp;</td>
            <td width="628"  align="left" ><p><img src="images/spacer.gif" width="1" height="1"><img src="images/index_35.gif" width="12" height="16"><strong>快速通道</strong></p>
			
          <tr>
            <td background="images/index_41.gif">&nbsp;</td>
            <td>
            	<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>
                <%
                List<TbModule> tbModuleListPar = (List<TbModule>)session.getAttribute("tbModuleListPar");
                Hashtable ht = (Hashtable)session.getAttribute("ht");
            	Iterator it = ht.keySet().iterator();
            	int ii =1;
            	//while(it.hasNext()){
            if(tbModuleListPar!=null&&tbModuleListPar.size()>0){
            	for(TbModule module:tbModuleListPar){
            		TbModule keys = module;
            		if(ii<ht.size()){
            			%>
            			<table width="100%" border="0" cellspacing="0" cellpadding="0">
	                    <tr>
	                      <td width="19"><img id="top_<%=ii %>" onClick="head('menu_<%=ii %>','top_<%=ii %>',0);" src="images/tree_03.gif" width="19" height="20"></td>
	                      <td width="19"><img src="images/tree_27.gif" width="19" height="20"></td>
	                      <td align="left"><%=keys.getModuleName() %></td>
	                    </tr>
	                  </table>
            			<%
            		}else{
            			%>
            			<table width="100%" border="0" cellspacing="0" cellpadding="0">
	                    <tr>
	                      <td width="19"><img id="top_<%=ii %>" onClick="head('menu_<%=ii %>','top_<%=ii %>',-1);" src="images/tree_29.gif" width="19" height="20"></td>
	                      <td width="19"><img src="images/tree_27.gif" width="19" height="20"></td>
	                      <td align="left"><%=keys.getModuleName() %></td>
	                    </tr>
	                  </table>
            			<%
            		}
            			%>
            			
            		
            		<%
            		List<TbModule> moduleList = (List<TbModule>)ht.get(keys);
            		%>
            		 <div id="menu_<%=ii %>" style="DISPLAY: none">
            		<%
            		if(moduleList!=null&&moduleList.size()>0){
            			%>
            			
            			<%
            			for(int i = 0;i<moduleList.size();i++){
            				TbModule moduleChile = (TbModule)moduleList.get(i);
            				if(i<moduleList.size()-1){
            					%>
            					<table width="100%" border="0" cellspacing="0" cellpadding="0">
								  <tr>
									<td width="19"><img src="images/tree_06.gif" width="19" height="20"></td>
									<td width="19"><img src="images/tree_07.gif" width="19" height="20"></td>
									<td width="19"><img src="images/tree_08.gif" width="19" height="20"></td>
									<td  align="left" ><a href="<%=moduleChile.getModuleUrl()%>" target="mainFrame" class="a03"><%=moduleChile.getModuleName() %></td>
								  </tr>
								</table>
            					<%
            				}else{
            					%>
            					<table width="100%" border="0" cellspacing="0" cellpadding="0">
								  <tr>
									<td width="19"><img src="images/tree_06.gif" width="19" height="20"></td>
									<td width="19"><img src="images/tree_23.gif" width="19" height="20"></td>
									<td width="19"><img src="images/tree_08.gif" width="19" height="20"></td>
									<td  align="left" ><a href="<%=moduleChile.getModuleUrl()%>" target="mainFrame" class="a03"><%=moduleChile.getModuleName() %></a></td>
								  </tr>
								</table>
            					<%
            				}
            			}
            			
            		}%>
            		 </div> 
            		<%
            		ii++;
            	}
            }
                %>
                </div></td>
              </tr>
            </table></td>
            <td width="67" background="images/index_43.gif">&nbsp;</td>
          </tr>
          <tr>
            <td><img src="images/index_50.gif" width="12" height="12"></td>
            <td background="images/index_51.gif"><img src="images/spacer.gif" width="1" height="1"></td>
            <td><img src="images/index_53.gif" width="12" height="12"></td>
          </tr>
      </table>
        <br>
    </td>
  </tr>
</table>
</body>
</html>
